package com.qf.controller;

import com.qf.pojo.Checkgroup;
import com.qf.pojo.Result;
import com.qf.service.CheckgroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/checkgroup")
public class CheckgroupController {

    @Autowired
    private CheckgroupService checkgroupService;

    @GetMapping
    public Result findAll(){
        List<Checkgroup> checkgroups = checkgroupService.list();

        return Result.success(checkgroups);
    }
}
